home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr42 / sbprodrv.zip / VOC2WAV.ZIP / VOC2WAV.TXT < prev    next >
Text File  |  1991-12-02  |  3KB  |  102 lines

  1. VOC2WAV.EXE and WAV2VOC.EXE
  2. ===========================
  3.  
  4.     VOC2WAV.EXE - converts Creative .VOC files to Microsoft .WAV files
  5.     WAV2VOC.EXE - converts Microsoft .WAV files to Creative .VOC files
  6.  
  7.     With these programs, existing Sound Blaster Voice files may now be
  8.     easily ported to the Microsoft Multimedia platform, and vice versa.
  9.  
  10.  
  11. USAGE
  12.  
  13.     The command-line formats of these programs are as follows:
  14.  
  15.     1)      VOC2WAV sourcefile [targetfile] /switches
  16.  
  17.         where
  18.         sourcefile    ----  Source VOC file to convert from.
  19.         targetfile    ----  Destination WAV file to convert to.
  20.  
  21.         and switches are:
  22.  
  23.         /C[1|2]       ----  Channel: 1=mono, 2=stereo.
  24.         /R[11|22|44]  ----  Sampling Rate in kHz, default = 11k.
  25.         /S[ON|OFF]    ----  Expand Silence, default = off.
  26.         /L[ON|OFF]    ----  Expand Repeat loop, default = off.
  27.  
  28.         The /S option allows silence blocks in the VOC file to be
  29.         expanded into a block of WAV silence data.
  30.  
  31.             The /L option allows VOC file repeat blocks to be expanded,
  32.             i.e. the WAV data will be replicated for the count specified
  33.             in the VOC file repeat. Note that negative repeat counts are
  34.             ignored  and  there  will be just one WAV  data  block  for
  35.             repeating.
  36.  
  37.     Examples:
  38.  
  39.         VOC2WAV sample.voc
  40.         Performs a default conversion: mono voice data, sampling
  41.                 rate 11 kHz, don't expand silence blocks, don't expand
  42.                 repeat blocks.
  43.  
  44.         VOC2WAV sample.voc newsamp.wav /C2
  45.         Performs a stereo voice data conversion.
  46.  
  47.         VOC2WAV sample.voc repsamp.wav /C2 /LON
  48.         Performs a conversion with repeat blocks expanded. If
  49.         sample.voc has the following format:
  50.  
  51.             ┌─────────────────┐
  52.             │  Repeat 2       │
  53.             │      VOCdata    │
  54.             │  EndRepeat      │
  55.             └─────────────────┘
  56.  
  57.         The output file (repsamp.wav) will have the following data:
  58.  
  59.             ┌─────────────────┐
  60.             │  WAVdata        │
  61.             │  WAVdata        │
  62.             │  WAVdata        │
  63.             └─────────────────┘
  64.  
  65.  
  66.       2)        WAV2VOC sourcefile [targetfile]
  67.  
  68.         where
  69.         sourcefile    ----  Source WAV file to convert from.
  70.         targetfile    ----  Destination VOC file to convert to.
  71.  
  72.         Note:   DOS wildcards (*,?) may be specified for sourcefile,
  73.             in which case the targetfile will have the same names
  74.             as the sourcefiles but with extension of .VOC.
  75.  
  76.     Examples:
  77.  
  78.         WAV2VOC wavsamp.wav
  79.         Converts the file wavsamp.wav to wavsamp.voc
  80.  
  81.         WAV2VOC *.wav
  82.         Converts all WAV files to VOC files with the same name.
  83.  
  84.  
  85. CONSTRAINTS
  86.  
  87.     There are a number of points to note about VOC to WAV conversion due
  88.     to the richness of the VOC file format.
  89.  
  90.     -   As WAV files only support 11KHz, 22KHz and 44KHz, all VOC files 
  91.     would  be  converted based on these rates.  User  can, however, 
  92.     stipulate whether they would prefer to step up or down from the 
  93.     original sampling rates.
  94.     -   Although the program takes care of different sampling rates, we
  95.     recommend that the original sampling rates should match one of the 
  96.     above sampling rates.
  97.     -   Since the Microsoft WAV file format supports only one block of data,
  98.     it can be played at only one sampling rate. Thus source VOC files 
  99.     for conversion should only contain blocks of the same sampling rate.
  100.     -   Repeat loops in the VOC file should not be nested.
  101.     -   Packed data blocks in the VOC file are ignored.
  102.